[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
##############################################################################
###+------+###################################################################
#+-| 13.1 |--------------+####################################################
#| +------+ INTRODUCTION |####################################################
#+-----------------------+####################################################
##############################################################################
##############################################################################
#+--------------------------------------------------------------------------+#
#| Runtime errors are generated whenever FORCE encounters an irretrievable |#
#| error. Runtime errors are considered fatal. That is, you can not trap |#
#| an error, fix the problem and then continue processing. |#
#+--------------------------------------------------------------------------+#
##############################################################################
##############################################################################
#+--------------------------------------------------------------------------+#
#| Use defensive programming techniques. FORCE commands do not return any |#
#| information, i.e., they are not like functions, therefore the proper |#
#| environment must be assured prior to executing a command. For example, |#
#| check to see if a database file exists prior to opening the database by |#
#| using the following syntax: |#
#| |#
#| IF exist( database_name ) |#
#| OPEN database_name ALIAS database |#
#| ENDIF |#
#| |#
#| rather than simply: |#
#| |#
#| OPEN database_name ALIAS database |#
#+--------------------------------------------------------------------------+#
##############################################################################
##############################################################################
###########+-----------------------------------------------------+############
###########| You may "gracefully" exit a program that encounters |############
###########| a runtime error by using the ON ERROR DO command. |############
###########+-----------------------------------------------------+############
##############################################################################
See Also:
The Escape Hatch BBS System - 703-373-0575 - Dual/HST Powered!
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson